﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.UI.Core
{
    /// <summary>
    /// 组件库,开发新组件库的时候继承这个类
    /// </summary>
    public  abstract class PartLibrary
    {
        public void RegisterPart(string name, Type partType)
        {
            PartLibraryManager.PartTypeDict.Add(name, partType);
        }

        public void RegisterProperty(Type propertyType, Type converterType, Type editorType)
        {
            PartLibraryManager.ConverterTypeDict.Add(propertyType, converterType);
        }

        public abstract void Install();
    }
}
